{include file="header.html"}
<div id="rightTop">
    <p>视频分类管理</p>
    <ul class="subnav">
        <li><span>{$lang.manage}</span></li>
        <li><a class="btn1" href="index.php?app=vcategory&amp;act=add">{$lang.add}</a></li>
    </ul>
</div>
<div class="mrightTop">
    <div class="fontl">
        <form method="get">
            <div class="left">
                <input type="hidden" name="app" value="vcategory" />
                <input type="hidden" name="act" value="index" />
                <select class="querySelect" name="field">{html_options options=$search_options selected=$smarty.get.field}
                </select><input class="queryInput" type="text" name="search_name" value="{$query.search_name|escape}" />
                <input type="submit" class="formbtn" value="{$lang.query}" />
            </div>
            <!--{if $filtered}-->
            <a class="left formbtn1" href="index.php?app=vcategory">{$lang.cancel_query}</a>
            <!--{/if}-->
        </form>
    </div>
    <div class="fontr">
        {if $vcategorys}{include file=page.top.html}{/if}
    </div>
    <div class="clear:both;"></div>
</div>
<div class="tdare">
    <table width="100%" cellspacing="0" class="dataTable">
        <!--{if $vcategorys}-->
        <tr class="tatr1">
            <td width="20" class="firstCell"><input type="checkbox" class="checkall" /></td>          
            <td align="left" width="200">{$lang.key}</td>            
            <td class="table-center">{$lang.order}</td>
            <td class="table-center">{$lang.isnav}</td>
            <td class="handler">{$lang.handler}</td>
        </tr>
        <!--{/if}-->
        <!--{foreach from=$vcategorys item=vcategory key=vcategory_id}-->
        <tr class="tatr2">
            <td class="firstCell"><input type="checkbox" class="checkitem" value="{$vcategory.cate_id}"/></td>
             
            <td>{$vcategory.cate_name}</td>
    
      
            <td class="table-center">
                <span ectype="inline_edit" fieldname="sort_order" fieldid="{$vcategory.cate_id}" datatype="pint" maxvalue="255" class="editable" title="{$lang.editable}">{$vcategory.sort_order}</span>
            </td>
               <td class="table-center">
               
                <!-- {if $vcategory.isnav} -->
            <img src="{res file=style/images/positive_enabled.gif}" ectype="inline_edit" fieldname="isnav" fieldid="{$vcategory.cate_id}" fieldvalue="1" title="{$lang.editable}"/>
            <!--{else}-->
            <img src="{res file=style/images/positive_disabled.gif}" ectype="inline_edit" fieldname="isnav" fieldid="{$vcategory.cate_id}" fieldvalue="0" title="{$lang.editable}"/>
            <!-- {/if} -->
               
            </td>
            <td class="handler">
                <a href="index.php?app=vcategory&amp;act=edit&amp;id={$vcategory_id}">{$lang.edit}</a>              
                <a href="javascript:drop_confirm('{$lang.drop_confirm}', 'index.php?app=vcategory&amp;act=drop&amp;id={$vcategory_id}');">{$lang.drop}</a>
            </td>
        </tr>
        <!--{foreachelse}-->
        <tr class="no_data">
            <td colspan="7">{$lang.no_data}</td>
        </tr>
        <!--{/foreach}-->
    </table>
    <!--{if $vcategorys}-->
    <div id="dataFuncs">
        <div class="pageLinks">
            {if $vcategorys}{include file=page.bottom.html}{/if}
        </div>
        <div id="batchAction"  class="left paddingT15">
            &nbsp;&nbsp;
            <input class="formbtn batchButton" type="button" value="{$lang.drop}" name="id" uri="index.php?app=vcategory&act=drop" presubmit="confirm('{$lang.drop_confirm}');" />
            &nbsp;&nbsp;
        </div>
        <div class="clear"></div>
    </div>
    <!--{/if}-->
</div>

{include file="footer.html"}
